#pragma once
#include "Connection.h"
class CDatabaseProxy	: public CConnection
{
public:
	CDatabaseProxy(void);
	~CDatabaseProxy(void);

	void Connect( xgc_lpcstr address, xgc_uint16 port, xgc_uint16 test_invent, xgc_uint16 timeout );
	void Disconnect();

protected:
	virtual void RegisteMessage();
	virtual xgc_lpvoid OnAccept( net::network_t h );
	virtual void OnClose( xgc_lpvoid userdata );
};

